clear 

use "$P_Data_Processed/monthly_station_data_e5_merged.dta", clear
 

reghdfe treat at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi  n_act_stations n_mkt_compet_adopt l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip if year<2019, absorb(year_month StID) cluster(mktid)
outreg2 using "$P_Tables/Table_G6", replace tex(frag) label dec(3) keep(at_least_10mbps)

ivreghdfe mean_wh_margin n_act_stations n_mkt_compet_adopt  l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip  (treat =  at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi ) if year<2019, absorb(year_month StID) cluster(mktid) 
outreg2 using "$P_Tables/Table_G6", append tex(frag) label dec(3) keep(treat)

ivreghdfe mean_price n_act_stations n_mkt_compet_adopt  l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip  (treat =  at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi ) if year<2019, absorb(year_month StID) cluster(mktid) 
outreg2 using "$P_Tables/Table_G6", append tex(frag) label dec(3) keep(treat)

ivreghdfe mean_wh_margin n_act_stations n_mkt_compet_adopt  l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip  (treat =  at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi ) if year<2019 & n_act_stations>1, absorb(year_month StID) cluster(mktid) 
outreg2 using "$P_Tables/Table_G6", append tex(frag) label dec(3) keep(treat)


ivreghdfe mean_price n_act_stations n_mkt_compet_adopt  l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip  (treat =  at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi ) if year<2019 & n_act_stations>1, absorb(year_month StID) cluster(mktid) 
outreg2 using "$P_Tables/Table_G6", append tex(frag) label dec(3) keep(treat)
	
ivreghdfe mean_price n_act_stations n_mkt_compet_adopt  l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip  (treat =  at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi ) if year<2019 & n_act_stations==1, absorb(year_month StID) cluster(mktid) 
outreg2 using "$P_Tables/Table_G6", append tex(frag) label dec(3) keep(treat)


ivreghdfe mean_wh_margin n_act_stations n_mkt_compet_adopt  l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip  (treat =  at_least_10mbps tot_n_meas_wifi avg_down_speed_wifi avg_up_speed_wifi ) if year<2019 & n_act_stations==1, absorb(year_month StID) cluster(mktid) 
outreg2 using "$P_Tables/Table_G6", append tex(frag) label dec(3) keep(treat)
	